﻿<%@ Page Title="" Language="C#" MasterPageFile="~/DichVuCon.Master" AutoEventWireup="true" CodeBehind="Contacts.aspx.cs" Inherits="Bilyteam_Website.WebForm3" %>
<%@ Register TagPrefix="recaptcha" Namespace="Recaptcha" Assembly="Recaptcha" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div>
    <table border="0" style="width: 585px">
                    <tr>
                        <td> 
                            <asp:Label ID="lblErro" ForeColor="Red" runat="server" Text=""></asp:Label></td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblLoi" ForeColor="Red" runat="server" Text=""></asp:Label> </td>
                    </tr>
                    <tr>    
                        <td>Những dấu (*) bắt buộc phải nhập:</td>
                    </tr>
                    <tr>
                        <td style="width: 128px">
                            Tỉnh Thành:
                        
                       
                            <asp:DropDownList ID="ddlTThanh" runat="server" style="margin-bottom: 0px" Width="150px">
                               
                            </asp:DropDownList>
                        </td>
                        
                    </tr>
                    <tr>
                        <td style="width: 128px" class="contact-align">
                            Gửi đến bộ phận:
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 128px; height: 25px;" class="contact-align">
                            <asp:DropDownList ID="ddlBophan" runat="server" Width="150px">
                               
                            </asp:DropDownList>
                        </td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            Quý danh:
                        </td>
                        <td class="contact-align">
                            Họ và tên:<asp:RequiredFieldValidator 
                                ID="RequiredFieldValidator4" runat="server"
                                ErrorMessage="*" ControlToValidate="txtHvten"></asp:RequiredFieldValidator>
                            </td>
                    </tr>
                    <tr class="contact-align">
                        <td style="text-align: left;">
                            <asp:DropDownList ID="ddlGender" runat="server" Height="25px" Width="63px">
                                <asp:ListItem Value="1">Nam</asp:ListItem>
                                <asp:ListItem Value="0">Nữ</asp:ListItem>
                            </asp:DropDownList>
                        </td>
                        <td class="contact-align">
                            <asp:TextBox ID="txtHvten" runat="server" Width="203px" Style="margin-left: 0px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            Công ty:<asp:RequiredFieldValidator
                                ID="RequiredFieldValidator3" runat="server" ErrorMessage="*" 
                                ControlToValidate="txtCty"></asp:RequiredFieldValidator>
                        </td>
                        <td class="contact-align">
                            Vị trí:
                        </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            <asp:TextBox ID="txtCty" runat="server" Width="231px"></asp:TextBox>
                        </td>
                        <td class="contact-align">
                            <asp:TextBox ID="txtVitri" runat="server" Width="205px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            Địa chỉ:<asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                ErrorMessage="*" ControlToValidate="txtDaichi"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2"  class="contact-align">
                            <asp:TextBox ID="txtDaichi" runat="server" Width="434px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            Telephone:
                        </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            <asp:TextBox ID="txtPhone" runat="server" Width="211px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td> 
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                ErrorMessage="ví dụ (090..016)" ControlToValidate="txtPhone" 
                                ValidationExpression="0\d{9,10}" Display="Dynamic"></asp:RegularExpressionValidator>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtPhone" ErrorMessage="nhập sdt của bạn"></asp:RequiredFieldValidator>
                          </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            Gmail:
                       
                        </td>
                        <td class="contact-align">Website:</td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            <asp:TextBox ID="txtEmail" runat="server" Width="236px"></asp:TextBox>
                        </td>

                        <td class="contact-align">
                            <asp:TextBox ID="txtWeb" runat="server" Width="205px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ErrorMessage="không được bỏ trống" ControlToValidate="txtEmail" 
                                Display="Dynamic"></asp:RequiredFieldValidator>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                                ErrorMessage="Email không phù hợp" ControlToValidate="txtEmail" 
                                ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator> 
                        </td>
                        <td>
                            <asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" 
                                ErrorMessage="Url không đúng cấu trúc(ví dụ http://)" ControlToValidate="txtWeb" 
                                ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                            </td>
                    </tr>
                    <tr>
                        <td class="contact-align">
                            Nội dung gặp mặt:<asp:RequiredFieldValidator 
                                ID="RequiredFieldValidator5" runat="server"
                                ErrorMessage="*" ControlToValidate="txtNoiDung"></asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2" class="contact-align">
                            <asp:TextBox ID="txtNoiDung" runat="server" Height="102px" TextMode="MultiLine" Width="379px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            Anti-spam:
                        </td>
                    </tr>
                    <tr>
                        <td colspan="2">
                            
                            <recaptcha:recaptchacontrol ID="recaptcha" 
                                PublicKey="6LcVotQSAAAAAGo9U2oTSKmdCap70jduGVxpo-7q" 
                                PrivateKey="6LcVotQSAAAAACF-WGZCORcoGpwLwRMugoVefciD" runat="server" />
                            
                        </td>
                        
                    </tr>
                    <tr>
                        <td> 
                            <asp:Label ID="lblCapcha" runat="server" ForeColor="Red"></asp:Label></td>
                    </tr>
                    <tr>
                        
                        <td align="center">
                            <asp:Button ID="btnGui" runat="server" Text="Gửi" style="margin-left: 0px" 
                                Width="91px" onclick="btnGui_Click" /> </td>
                    </tr>
                </table>
</div>
</asp:Content>
